#pragma once
#ifndef _CRESOURCES_H
#define _CRESOURCES_H
#include "Texture.h"
#include "dsutil.h"
#include "Audio.h"
#include "Surface.h"

class Resources
{
private:
	static Resources* _ResourcesGame;
	Resources(LPDIRECT3DDEVICE9 pd3d, LPDIRECT3DSURFACE9 buffer, HWND hWnd);
public:
	static Resources*	CreateResources(LPDIRECT3DDEVICE9 pd3d, LPDIRECT3DSURFACE9 buffer, HWND hWnd);
	~Resources();

	// Images
	Texture* Items;
	Texture* MarioBig;
	Texture* MarioSmall;
	Texture* MarioFire;
	Texture* Goomba;
	Texture* Koopa;
	Texture* KoopaA;
	Texture* Brick;
	Texture* Coin;
	Texture* Bullet;
	Texture* Cloud;
	Texture* Mountain;
	Texture* Pipe1;
	Texture* Pipe2;
	Texture* Pipe3;
	Texture* Eat;
	Texture* Score;
	Texture* Info;
	Texture* QBrick;
	Texture* Imenu;
	Texture* Ladder;
	Texture* Select;
	Texture* Number;
	Texture* Boss;
	Texture* FireBoss;
	Texture* Check;
	Texture* CCC;

	LPDIRECT3DDEVICE9			_pd3ddv;
	LPDIRECT3DSURFACE9			_back_buffer;

	Surface* _bgMenu;
	Surface* _bgGame;
	Surface* _bgGame2;
	Surface* _bgGame3;
	Surface* _bgHelp;
	Surface* _bgHelp2;
	Surface* _bgOption;

	// Sound
	Audio* _audio;

	CSound* Background;
	CSound* BonusRise;
	CSound* BrickBreaked;
	CSound* Bump;
	CSound* CoinS;
	CSound* Death;
	CSound* FireBall;
	CSound* GameOver;
	CSound* Jump;
	CSound* Kick;
	CSound* Life;
	CSound* Mip;
	CSound* PipeWarp;
	CSound* PowerUp;
	CSound* Selected;
	CSound* StartGame;
	CSound* WinState;
};
#endif
